import 'package:flutter/material.dart';

void main() {
  runApp(MainPage());
}
class MainPage extends StatelessWidget{
  const MainPage({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context){
    return MaterialApp(
      home:Scaffold(
        body:Container(
          transform: Matrix4.rotationZ(0.05),//旋转角度:弧度而非角度 
          margin: EdgeInsets.all(20),
          alignment: Alignment.center,
          width: 200,
        height: 200,
        decoration:BoxDecoration(
          color:Colors.blue,
          borderRadius:BorderRadius.circular(15),
          border: Border.all(color: const Color.fromARGB(255, 182, 176, 0),width: 3)
        ),
        child:Text("hi",style: TextStyle(color: Colors.white,fontSize: 20))
        ),
        )
    );
  }
}